﻿using OA.Models.Enums;
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace OA.Models
{
    /// <summary>
    ///  申请单基类
    /// </summary>
    public class ApplicationForm
    {
        [Key]
        [DisplayName("表单编号")]
        public string Id { get; set; }

        [Required]
        [DisplayName("最后修改时间")]
        [DisplayFormat(DataFormatString = "{0: yyyy年MM月dd日 HH:mm:ss}")]
        public DateTime ModificationDate { get; set; }
        [Required]
        [DisplayName("状态")]
        public ApplicationFormState Status { get; set; }

        [Required]
        [DisplayName("提交人工号")]
        public string CreatorId { get; set; }
        [DisplayName("提交人")]
        public string Creator { get; set; }
        
        [DisplayName("申请人工号")]
        public string ApplicantId { get; set; }
        [DisplayName("申请人")]
        public string Applicant { get; set; }
    }
}